package lib.quasar.db.table;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * description: 聊天页面
 * created by kalu on 2018/6/20 14:40
 */
@Entity
public final class Message {

    @Id(autoincrement = true) // 主键自增
    protected Long id_;

    private Integer message_num = 0;
    private Long message_own = 0L;
    private Long message_id = 0L;
    private String message_name = "";
    private String message_text = "";
    private String message_icon = "";
    private String message_time = "";

    @Generated(hash = 637306882)
    public Message() {
    }

    @Generated(hash = 929481389)
    public Message(Long id_, Integer message_num, Long message_own, Long message_id, String message_name, String message_text, String message_icon, String message_time) {
        this.id_ = id_;
        this.message_num = message_num;
        this.message_own = message_own;
        this.message_id = message_id;
        this.message_name = message_name;
        this.message_text = message_text;
        this.message_icon = message_icon;
        this.message_time = message_time;
    }

    public String getMessage_time() {
        return message_time;
    }

    public void setMessage_time(String message_time) {
        this.message_time = message_time;
    }

    public Long getId_() {
        return id_;
    }

    public void setId_(Long id_) {
        this.id_ = id_;
    }

    public Integer getMessage_num() {
        return message_num;
    }

    public void setMessage_num(Integer message_num) {
        this.message_num = message_num;
    }

    public Long getMessage_own() {
        return message_own;
    }

    public void setMessage_own(Long message_own) {
        this.message_own = message_own;
    }

    public Long getMessage_id() {
        return message_id;
    }

    public void setMessage_id(Long message_id) {
        this.message_id = message_id;
    }

    public String getMessage_name() {
        return message_name;
    }

    public void setMessage_name(String message_name) {
        this.message_name = message_name;
    }

    public String getMessage_text() {
        return message_text;
    }

    public void setMessage_text(String message_text) {
        this.message_text = message_text;
    }

    public String getMessage_icon() {
        return message_icon;
    }

    public void setMessage_icon(String message_icon) {
        this.message_icon = message_icon;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id_=" + id_ +
                ", message_num=" + message_num +
                ", message_own=" + message_own +
                ", message_id=" + message_id +
                ", message_name='" + message_name + '\'' +
                ", message_text='" + message_text + '\'' +
                ", message_icon='" + message_icon + '\'' +
                ", message_time='" + message_time + '\'' +
                '}';
    }
}
